package com.g13.virtualpethospital.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * @Title: TestExamEntity
 * @Author yyj1205
 * @Package com.g13.virtualpethospital.entity
 * @Date 24/3/2024 20:51
 * @description: 记录用户一次考试的数据
 */
@ApiModel(description = ": 记录用户一次考试的数据")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Document("TestExam")
public class TestExamEntity {
    /**
     * 考试学习id
     */
    @Id
    @ApiModelProperty(value = "考试学习id", position = 1)
    String testExamId;
    /**
     * 试卷id
     */
    @ApiModelProperty(value = "试卷id", position = 2)
    String testId;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", position = 3)
    String userId;
    /**
     * 用户答案
     */
    @ApiModelProperty(value = "用户答案", position = 4)
    List<String> answers;
    /**
     * 成绩
     */
    @ApiModelProperty(value = "成绩", position = 5)
    int score;
}
